package com.ado.agea.revista;

public class Concepto {

	private int id;
	private int id_subfamilia;
	private String nombre_feed;
	private double minimo;
	private double maximo;
	private int feed = 1;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId_subfamilia() {
		return id_subfamilia;
	}

	public void setId_subfamilia(int id_subfamilia) {
		this.id_subfamilia = id_subfamilia;
	}

	public String getNombre_feed() {
		return nombre_feed;
	}

	public void setNombre_feed(String nombre_feed) {
		this.nombre_feed = nombre_feed;
	}

	public double getMinimo() {
		return minimo;
	}

	public void setMinimo(float minimo) {
		this.minimo = minimo;
	}

	public double getMaximo() {
		return maximo;
	}

	public void setMaximo(float maximo) {
		this.maximo = maximo;
	}

	public int getFeed() {
		return feed;
	}

	public void setFeed(int feed) {
		this.feed = feed;
	}

	public Concepto(int id, int id_subfamilia, String nombre_feed, double minimo, double maximo, int feed) {
		super();
		this.id = id;
		this.id_subfamilia = id_subfamilia;
		this.nombre_feed = nombre_feed;
		this.minimo = minimo;
		this.maximo = maximo;
		this.feed = feed;
	}

	public String getSql(int orden) {
		StringBuilder sb = new StringBuilder();
		sb.append("INSERT INTO `concepto` (`id`,`id_familia`,`id_parent`,`nombre`,`nivel`) " + "VALUES ('" + id + "','"
				+ "'" + id + "','");
		sb.append("\n");
		sb.append("INSERT INTO `` ()");
		return sb.toString();
	}
}
